package com.mtnz.njk.Mapper;

import com.mtnz.njk.entity.CountCommunityEntity;
import com.mtnz.njk.model.ResearchShareListModel;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@org.apache.ibatis.annotations.Mapper
public interface CountCommunityManageMapper extends Mapper<CountCommunityEntity> {

    /**
     * 获取分享商品的用户ID
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    List<HashMap<String,String>> findProductShareUserId(@Param("startTime") String startTime, @Param("endTime") String endTime)throws Exception;

    /**
     * 获取分享商品的用户ID
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    List<HashMap<String,String>> findIntegralShareUserId(@Param("startTime") String startTime, @Param("endTime") String endTime)throws Exception;

    /**
     * 根据id和类型查分享
     * @param communityId
     * @return
     * @throws Exception
     */
    List<ResearchShareListModel> selectShareList(@Param("communityId")String communityId,@Param("communityType")String communityType)throws Exception;


    Map findResearchDateMonth(@Param("researchId")String researchId,@Param("startTime") String startTime, @Param("endTime") String endTime)throws Exception;
}
